<template>
  <div class="cmp-pdf-widget">
    <div class="cmp-pdf">
      <iframe
        :src="this.iframePdfSrc"
        v-if="iframePdfSrc"
        style="width: 100%; height: calc(100vh - 120px)"
        frameborder="0"
      ></iframe>
    </div>
  </div>
</template>
<script>
  var pdfDoc = null
  export default {
    props: ['src'],
    data() {
      return {
        pageNum: 1,
        pageRendering: false,
        pageNumPending: false,
        scale: 0.8,
        pageCount: 0,
      }
    },
    computed: {
      iframePdfSrc() {
        let src = this.src
        // if (!src.startsWith('https')) {
        //   src = src.replace('http', 'https')
        // }
        return src
      },
    },
    mounted() {
      // this.render(this.src);
    },
    methods: {},
  }
</script>
